-
Notifications
You must be signed in to change notification settings - Fork 1
No error in init #457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No error in init #457
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR modifies the initialization and device handling logic of the UMP binding by removing error raises in the constructor and shifting error handling to the asynchronous accessor methods. Key changes include:
- Removing error checks and exceptions from init
- Refactoring get_manipulators to return an empty list for no devices
- Adjusting get_axes_count to handle the empty list case and calling get_axes_count in _is_ump_3
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/ephys_link/bindings/ump_binding.py | Refactored device error handling and axis count logic |
| src/ephys_link/about.py | Version bump reflecting the new build version |
…in-init # Conflicts: # src/ephys_link/bindings/ump_binding.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
Comments suppressed due to low confidence (1)
src/ephys_link/bindings/ump_binding.py:56
- Validating device axis consistency in get_manipulators() rather than during initialization may delay the detection of incompatible device configurations. Ensure that consumers of get_manipulators() can correctly handle the delayed error scenario.
if any(self._get_device(device_id).n_axes() != self.axis_count for device_id in device_ids): # pyright: ignore [reportUnknownArgumentType, reportUnknownMemberType]
Brief summary of changes
Notes